package org.xiaoleng.cdm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.xiaoleng.cdm.entity.ro.JobConfigurationRO;
import org.xiaoleng.cdm.service.JobService;

@RestController
@RequestMapping("/job")
public class JobController {

    @Autowired
    private JobService jobService;


    @PostMapping("/create")
    public String create(@RequestBody JobConfigurationRO configuration){
        return jobService.create(configuration);
    }

}
